package cn.com.cloudpioneer.evaluate.utils;

import java.util.Date;

/**
 * @auther maruikai
 * @create 2023/5/19-15:45
 */
public abstract class StringUtil {

    public static boolean isNotEmpty(Object s) {
        if (s instanceof String) {
            return !"".equals(s);
        } else if (s instanceof Date) {
            return true;
        } else {
            return s != null;
        }
    }

    public static boolean isEmpty(Object s) {
        if (s == null) {
            return true;
        } else if (s instanceof String) {
            return "".equals(s);
        } else {
            return false;
        }
    }

}
